<?php $this->load->view('admins/header'); ?>
<?php $this->load->view('admins/menu'); ?>
<div class="container conter">
    <?php $this->load->view('admins/Merchandise/menu'); ?>
    <div class="body">
        <?php echo form_open_multipart('admins/Merchandise/doEdit'); ?>
        <input type="hidden" name="eid" value />
        <div class="side">
            <dl>
                <dt><label for="mer_tag"><?php echo lang('mer_tag'); ?></label></dt>
                <dd><input type="text" name="tag" value="<?php echo isset($merchandise['tags'])?implode(',', $merchandise['tags']):''; ?>" /></dd>
            </dl>
            <dl>
                <dt><label for="mer_price"><?php echo lang('mer_price'); ?></label></dt>
                <dd><select name="mer_price">
                    <option value="kg" <?php echo (isset($merchandise['mer_price']) && $merchandise['mer_price']=='kg')?'selected="selected"':''; ?>>公斤</option>
                    <option value="g" <?php echo (isset($merchandise['mer_price']) && $merchandise['mer_price']=='g')?'selected="selected"':''; ?>>斤</option>
                </select></dd>
            </dl>
            <dl>
                <dt><label for="mer_moq"><?php echo lang('mer_moq'); ?></label></dt>
                <dd><input type="text" name="mer_moq" value="<?php echo isset($merchandise['mer_moq'])?$merchandise['mer_moq']:''; ?>" /></dd>
            </dl>
            <dl>
                <dt><label for="tag"><?php echo lang('mer_total'); ?></label></dt>
                <dd><input type="text" name="tag" value="<?php echo isset($merchandise['mer_total'])?$merchandise['mer_total']:''; ?>" /></dd>
            </dl>
            <dl>
                <dt><label for="mer_edtime"><?php echo lang('mer_edtime'); ?></label></dt>
                <dd><input type="text" name="mer_edtime" value="<?php echo isset($merchandise['mer_edtime'])?$merchandise['mer_edtime']:''; ?>" /></dd>
            </dl>
            <dl>
                <dt><label for="picture"><?php echo lang('picture'); ?></label></dt>
                <dd><?php $this->load->view('admins/upload'); ?></dd>
            </dl>
        </div>
        <div class="main">
            <dl>
                <dt><label for="mer_type"><?php echo lang('mer_type'); ?></label></dt>
                <dd><select name="mer_type">
                    <option value="buy" <?php echo (isset($merchandise['mer_type']) && $merchandise['mer_type']=='buy')?'selected="selected"':''; ?>>求购</option>
                    <option value="supply" <?php echo (isset($merchandise['mer_type']) && $merchandise['mer_type']=='supply')?'selected="selected"':''; ?>>供应</option>
                </select></dd>
            </dl>
            <dl>
                <dt><label for="mer_name"><?php echo lang('mer_name'); ?></label></dt>
                <dd><input type="text" name="mer_name" value="<?php echo isset($merchandise['mer_name'])?$merchandise['mer_name']:''; ?>" /></dd>
            </dl>
            <dl>
                <dt><label for="mer_content"><?php echo lang('mer_content'); ?></label></dt>
                <dd><textarea name="mer_content" class="texts"><?php echo isset($merchandise['mer_content'])?$merchandise['mer_content']:''; ?></textarea></dd>
            </dl>
            <dl>
                <dt><label>&nbsp;</label></dt>
                <dd><input class="input-submit" type="submit" value="<?php echo lang('submit'); ?>" /></dd>
            </dl>
        </div>
        </form>
    </div>
</div>
<?php $this->load->view('admins/uploadjs'); ?>
<?php $this->load->view('admins/footer'); ?>